﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace Model
{
    [DataContract]
    [MB.Orm.Mapping.Att.ModelMap("DCInventory", "DCInventory", new string[] { "ID" })]
    [KnownType(typeof(DCInventory))]
    public class DCInventory : MB.Orm.Common.BaseModel
    {
        public DCInventory()
        {

        }
        private int _ID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ID", System.Data.DbType.Int32)]
        public int ID
        {
            get { return _ID; }
            set { _ID = value; }
        }
        private int _GOODSID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSID", System.Data.DbType.Int32)]
        public int GOODSID
        {
            get { return _GOODSID; }
            set { _GOODSID = value; }
        }
        private int _WAREHOUSEID;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSEID", System.Data.DbType.Int32)]
        public int WAREHOUSEID
        {
            get { return _WAREHOUSEID; }
            set { _WAREHOUSEID = value; }
        }
        private string _GOODSBATCHCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSBATCHCODE", System.Data.DbType.String)]
        public string GOODSBATCHCODE
        {
            get { return _GOODSBATCHCODE; }
            set { _GOODSBATCHCODE = value; }
        }

        private string _PRODUCTIONDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("PRODUCTIONDATE", System.Data.DbType.String)]
        public string PRODUCTIONDATE
        {
            get { return _PRODUCTIONDATE; }
            set { _PRODUCTIONDATE = value; }
        }

        private int _EXPIRYDAYS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("EXPIRYDAYS", System.Data.DbType.Int32)]
        public int EXPIRYDAYS
        {
            get { return _EXPIRYDAYS; }
            set { _EXPIRYDAYS = value; }
        }

        private int _USEFULQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("USEFULQTY", System.Data.DbType.Int32)]
        public int USEFULQTY
        {
            get { return _USEFULQTY; }
            set { _USEFULQTY = value; }
        }

        private int _ACTUALQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("ACTUALQTY", System.Data.DbType.Int32)]
        public int ACTUALQTY
        {
            get { return _ACTUALQTY; }
            set { _ACTUALQTY = value; }
        }

        private string _STATUS;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("STATUS", System.Data.DbType.String)]
        public string STATUS
        {
            get { return _STATUS; }
            set { _STATUS = value; }
        }
        private string _OPRNO;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("OPRNO", System.Data.DbType.String)]
        public string OPRNO
        {
            get { return _OPRNO; }
            set { _OPRNO = value; }
        }
        private DateTime _CREATEDATE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("CREATEDATE", System.Data.DbType.DateTime)]
        public DateTime CREATEDATE
        {
            get { return _CREATEDATE; }
            set { _CREATEDATE = value; }
        }
        private string _GOODSCODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSCODE", System.Data.DbType.String)]
        public string GOODSCODE
        {
            get { return _GOODSCODE; }
            set { _GOODSCODE = value; }
        }
        private string _GOODSNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("GOODSNAME", System.Data.DbType.String)]
        public string GOODSNAME
        {
            get { return _GOODSNAME; }
            set { _GOODSNAME = value; }
        }
        private string _WAREHOUSENAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WAREHOUSENAME", System.Data.DbType.String)]
        public string WAREHOUSENAME
        {
            get { return _WAREHOUSENAME; }
            set { _WAREHOUSENAME = value; }
        }
        private string _UNITNAME;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("UNITNAME", System.Data.DbType.String)]
        public string UNITNAME
        {
            get { return _UNITNAME; }
            set { _UNITNAME = value; }
        }
        private string _THIRDSTORECODE;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("THIRDSTORECODE", System.Data.DbType.String)]
        public string THIRDSTORECODE
        {
            get { return _THIRDSTORECODE; }
            set { _THIRDSTORECODE = value; }
        }
        private int _FROZENQTY;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("FROZENQTY", System.Data.DbType.Int32)]
        public int FROZENQTY
        {
            get { return _FROZENQTY; }
            set { _FROZENQTY = value; }
        }
        private decimal _INVENTORYPROPORTION;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("INVENTORYPROPORTION", System.Data.DbType.Decimal)]
        public decimal INVENTORYPROPORTION
        {
            get { return _INVENTORYPROPORTION; }
            set { _INVENTORYPROPORTION = value; }
        }
        private int _WARNINGMSG;
        [DataMember]
        [MB.Orm.Mapping.Att.ColumnMap("WARNINGMSG", System.Data.DbType.Int32)]
        public int WARNINGMSG
        {
            get { return _WARNINGMSG; }
            set { _WARNINGMSG = value; }
        }
    }
}
